package com.zzty.training.service.impl;

import com.zzty.training.dao.SelfExamDao;
import com.zzty.training.entity.SelfExam;
import com.zzty.training.service.SelfExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SelfExamServiceImpl implements SelfExamService {
    @Autowired
    SelfExamDao selfExamDao;
    @Override
    public List<SelfExam> getAllSelfExam() {
        List<SelfExam> selfExams=selfExamDao.getAllSelfExam();
        return selfExams;
    }
    @Override
    public Integer addSelfExam(SelfExam selfExam) {
        Integer res=selfExamDao.addSelfExam(selfExam);
        return res;
    }
}
